import request from '@/utils/request'

// 查询编码配置列表
export function listSysBmFacility(query) {
  return request({
    url: '/system/sysBmFacility/list',
    method: 'get',
    params: query
  })
}

// 查询编码配置详细
export function getSysBmFacility(bmId) {
  return request({
    url: '/system/sysBmFacility/' + bmId,
    method: 'get'
  })
}

// 新增编码配置
export function addSysBmFacility(data) {
  return request({
    url: '/system/sysBmFacility',
    method: 'post',
    data: data
  })
}

// 修改编码配置
export function updateSysBmFacility(data) {
  return request({
    url: '/system/sysBmFacility',
    method: 'put',
    data: data
  })
}

// 删除编码配置
export function delSysBmFacility(bmId) {
  return request({
    url: '/system/sysBmFacility/' + bmId,
    method: 'delete'
  })
}
